package com.study.demo_db_security_dynamic.mapper;

import com.study.demo_db_security_dynamic.bean.Role;
import com.study.demo_db_security_dynamic.bean.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @ClassName: UserMapper
 * @Description:
 * @author: WS
 * @date 2020/12/31
 * @Version: 1.0
 **/
@Mapper
public interface UserMapper {
    User loadUserByUsername(String name) ;

    List<Role> getUserRolesById(Integer id) ;
}
